import redis.clients.jedis.Jedis;

public class test {
    public static void main(String[] args) {
        Jedis jedis=new Jedis("localhost",6379);
        String result=jedis.ping();
        System.out.println(result);
        jedis.close();
    }
}
